<template>
    <div>
        <div class="m-box m-title">欢迎来到Dreamself的个人博客~</div>
        <div class="m-box">{{oneTalk}}</div>
        <div class="m-box">此为本网站第一个版本</div>
    </div>
</template>

<script>
import axios from 'axios'
import { mapState } from 'vuex';
export default {
    name:'HomeJoke',
    data() {
        return {
            oneTalk:'',
        }
    },
    computed:{
            ...mapState('homeAbout',['count'])
    },
    methods: {
        
    },
    mounted() {
        axios.get('https://api.uixsj.cn/hitokoto/get?type=social').then(
            response => {
                this.oneTalk = response.data
            },
            error => {
                alert(error.message)
            }
        )
    },
}
</script>

<style scoped>

</style>